import os
import logging
logger = logging.getLogger(__name__)

# 获取项目路径
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 定义测试用例数据文件路径
CASE_DATA_PATH = os.path.join(BASE_PATH,'data/case.yaml')

# 定义常用变量数据文件路径
VAR_DATA_PATH = os.path.join(BASE_PATH,'data/variable.yaml')

# mysql数据库的连接信息
mysql_info = {
    "host":"127.0.0.1",
    "port":3306,
    "user":"root",
    "password":"123456",
    "db":"xm_secondhand",
    "charset":"utf8"
}

# 环境信息
ENV_HOST_PORT = 'http://127.0.0.1:9090'

# 替换符
PATTERN = r'\$\{(.*?)\}'